package com.cloudalibabaseatastock10089.controller;

import com.cloudalibabaseatastock10089.service.StockService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 库存表 前端控制器
 * </p>
 *
 * @author zx
 * @since 2024-12-06
 */
@RestController
@RequestMapping("/stock")
public class StockController {

    @Resource
    private StockService stockService;

    @RequestMapping("/deduct")
    public String deduct() {
        stockService.deduct();
        return "deduct success";
    }

}
